package main

import (
	"bunker/pkg"
	"fmt"

	"github.com/zh-five/xprocess"
)

func main() {
	go func() {
		<-xprocess.NewSignal().SignalAllExit().Done()
		pkg.GS.Shutdown()
		fmt.Println("signal exit") // ctrl +c 后会输出 end
	}()

	app := &App{}
	app.Run()

	pkg.GS.Shutdown()
}
